package com.itheima.pojo.client.orderPaginationVo;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author ChenJunJie
 * @date 2022/6/21 16:19
 * 订单分页出参
 */
public class OrderPaginationVo {
    /**
     * 订单id
     */
    private String id;
    /**
     * 订单创建时间
     */
    private String orderTime;
    /**
     * 订单状态
     */
    private String status;
    /**
     * 总金额
     */
    private BigDecimal amount;
    /**
     * 订单商品
     */
    private List<OrderDetail> orderDetails;

    public OrderPaginationVo() {
    }

    public OrderPaginationVo(String id, String orderTime, String status, BigDecimal amount, List<OrderDetail> orderDetails) {
        this.id = id;
        this.orderTime = orderTime;
        this.status = status;
        this.amount = amount;
        this.orderDetails = orderDetails;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(String orderTime) {
        this.orderTime = orderTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public List<OrderDetail> getOrderDetails() {
        return orderDetails;
    }

    public void setOrderDetails(List<OrderDetail> orderDetails) {
        this.orderDetails = orderDetails;
    }

    @Override
    public String toString() {
        return "OrderPaginationVo{" +
                "id='" + id + '\'' +
                ", orderTime='" + orderTime + '\'' +
                ", status='" + status + '\'' +
                ", amount=" + amount +
                ", orderDetails=" + orderDetails +
                '}';
    }
}
